# SummaryWriter 类的使用
# Running: tensorboard --logdir=logs --port=6007

from torch.utils.tensorboard import SummaryWriter


# 存储到 logs/ 文件夹下
writer = SummaryWriter("logs")

# writer.add_image()


# writer.add_scalar(tag, x_axis, y_axis)
# y = x function
for i in range(100):
    writer.add_scalar("y = x", i, i)

writer.close()